package com.cys.dm.client.base;

import com.cys.dm.entity.base.DmArea;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "dm-base-provider")
@Component
public interface DmAreaClient {

    @PostMapping(path = "/queryCityList")
    public List<DmArea> dmAreaList();

    @PostMapping(path = "/findById")
    public DmArea findById(@RequestParam("id") Integer id);
}
